package com.zhongli.devplatform.dto.teacher;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author WuXiCheng
 * @version 1.0
 * @date 2020/7/31 10:24
 */
@Data
@ApiModel(value = "发布通知",description = "发布通知数据传输对象")
public class NoticeDTO {

    /**
     * 通知类型
     */
    @NotNull(message = "通知类型不能为空你")
    @ApiModelProperty(name = "phone",value = "通知类型必填", required = true)
    private Integer noticeType;

    /**
     * 通知标题
     */
    @NotNull(message = "通知标题")
    @ApiModelProperty(name = "title",value = "通知标题必填", required = true)
    private String title;
    /**
     * 通知内容
     */
    @NotNull(message = "通知内容")
    @ApiModelProperty(name = "comment",value = "通知内容必填", required = true)
    private String comment;

    /**
     * 通知班级
     */
    @NotNull(message = "通知班级")
    @ApiModelProperty(name = "clazzId",value = "通知班级必填", required = true)
    private List<Integer> clazzId;

}
